﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020010B5 RID: 4277
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SceneCastSkillScRsp : IMessage<SceneCastSkillScRsp>, IMessage, IEquatable<SceneCastSkillScRsp>, IDeepCloneable<SceneCastSkillScRsp>, IBufferMessage
	{
		// Token: 0x1700360B RID: 13835
		// (get) Token: 0x0600BF2C RID: 48940 RVA: 0x002041D7 File Offset: 0x002023D7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SceneCastSkillScRsp> Parser
		{
			get
			{
				return SceneCastSkillScRsp._parser;
			}
		}

		// Token: 0x1700360C RID: 13836
		// (get) Token: 0x0600BF2D RID: 48941 RVA: 0x002041DE File Offset: 0x002023DE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SceneCastSkillScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700360D RID: 13837
		// (get) Token: 0x0600BF2E RID: 48942 RVA: 0x002041F0 File Offset: 0x002023F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SceneCastSkillScRsp.Descriptor;
			}
		}

		// Token: 0x0600BF2F RID: 48943 RVA: 0x002041F7 File Offset: 0x002023F7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneCastSkillScRsp()
		{
		}

		// Token: 0x0600BF30 RID: 48944 RVA: 0x0020420C File Offset: 0x0020240C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneCastSkillScRsp(SceneCastSkillScRsp other) : this()
		{
			this.battleInfo_ = ((other.battleInfo_ != null) ? other.battleInfo_.Clone() : null);
			this.castEntityId_ = other.castEntityId_;
			this.retcode_ = other.retcode_;
			this.monsterBattleInfo_ = other.monsterBattleInfo_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600BF31 RID: 48945 RVA: 0x00204275 File Offset: 0x00202475
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneCastSkillScRsp Clone()
		{
			return new SceneCastSkillScRsp(this);
		}

		// Token: 0x1700360E RID: 13838
		// (get) Token: 0x0600BF32 RID: 48946 RVA: 0x0020427D File Offset: 0x0020247D
		// (set) Token: 0x0600BF33 RID: 48947 RVA: 0x00204285 File Offset: 0x00202485
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneBattleInfo BattleInfo
		{
			get
			{
				return this.battleInfo_;
			}
			set
			{
				this.battleInfo_ = value;
			}
		}

		// Token: 0x1700360F RID: 13839
		// (get) Token: 0x0600BF34 RID: 48948 RVA: 0x0020428E File Offset: 0x0020248E
		// (set) Token: 0x0600BF35 RID: 48949 RVA: 0x00204296 File Offset: 0x00202496
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CastEntityId
		{
			get
			{
				return this.castEntityId_;
			}
			set
			{
				this.castEntityId_ = value;
			}
		}

		// Token: 0x17003610 RID: 13840
		// (get) Token: 0x0600BF36 RID: 48950 RVA: 0x0020429F File Offset: 0x0020249F
		// (set) Token: 0x0600BF37 RID: 48951 RVA: 0x002042A7 File Offset: 0x002024A7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17003611 RID: 13841
		// (get) Token: 0x0600BF38 RID: 48952 RVA: 0x002042B0 File Offset: 0x002024B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<HitMonsterBattleInfo> MonsterBattleInfo
		{
			get
			{
				return this.monsterBattleInfo_;
			}
		}

		// Token: 0x0600BF39 RID: 48953 RVA: 0x002042B8 File Offset: 0x002024B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SceneCastSkillScRsp);
		}

		// Token: 0x0600BF3A RID: 48954 RVA: 0x002042C8 File Offset: 0x002024C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SceneCastSkillScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.BattleInfo, other.BattleInfo) && this.CastEntityId == other.CastEntityId && this.Retcode == other.Retcode && this.monsterBattleInfo_.Equals(other.monsterBattleInfo_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600BF3B RID: 48955 RVA: 0x0020433C File Offset: 0x0020253C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.battleInfo_ != null)
			{
				num ^= this.BattleInfo.GetHashCode();
			}
			if (this.CastEntityId != 0U)
			{
				num ^= this.CastEntityId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			num ^= this.monsterBattleInfo_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600BF3C RID: 48956 RVA: 0x002043B8 File Offset: 0x002025B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600BF3D RID: 48957 RVA: 0x002043C0 File Offset: 0x002025C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600BF3E RID: 48958 RVA: 0x002043CC File Offset: 0x002025CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.battleInfo_ != null)
			{
				output.WriteRawTag(10);
				output.WriteMessage(this.BattleInfo);
			}
			this.monsterBattleInfo_.WriteTo(ref output, SceneCastSkillScRsp._repeated_monsterBattleInfo_codec);
			if (this.CastEntityId != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.CastEntityId);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600BF3F RID: 48959 RVA: 0x00204454 File Offset: 0x00202654
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.battleInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.BattleInfo);
			}
			if (this.CastEntityId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CastEntityId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			num += this.monsterBattleInfo_.CalculateSize(SceneCastSkillScRsp._repeated_monsterBattleInfo_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600BF40 RID: 48960 RVA: 0x002044D8 File Offset: 0x002026D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SceneCastSkillScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.battleInfo_ != null)
			{
				if (this.battleInfo_ == null)
				{
					this.BattleInfo = new SceneBattleInfo();
				}
				this.BattleInfo.MergeFrom(other.BattleInfo);
			}
			if (other.CastEntityId != 0U)
			{
				this.CastEntityId = other.CastEntityId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this.monsterBattleInfo_.Add(other.monsterBattleInfo_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600BF41 RID: 48961 RVA: 0x00204565 File Offset: 0x00202765
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600BF42 RID: 48962 RVA: 0x00204570 File Offset: 0x00202770
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 18U)
				{
					if (num == 10U)
					{
						if (this.battleInfo_ == null)
						{
							this.BattleInfo = new SceneBattleInfo();
						}
						input.ReadMessage(this.BattleInfo);
						continue;
					}
					if (num == 18U)
					{
						this.monsterBattleInfo_.AddEntriesFrom(ref input, SceneCastSkillScRsp._repeated_monsterBattleInfo_codec);
						continue;
					}
				}
				else
				{
					if (num == 56U)
					{
						this.CastEntityId = input.ReadUInt32();
						continue;
					}
					if (num == 72U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04004D05 RID: 19717
		private static readonly MessageParser<SceneCastSkillScRsp> _parser = new MessageParser<SceneCastSkillScRsp>(() => new SceneCastSkillScRsp());

		// Token: 0x04004D06 RID: 19718
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004D07 RID: 19719
		public const int BattleInfoFieldNumber = 1;

		// Token: 0x04004D08 RID: 19720
		private SceneBattleInfo battleInfo_;

		// Token: 0x04004D09 RID: 19721
		public const int CastEntityIdFieldNumber = 7;

		// Token: 0x04004D0A RID: 19722
		private uint castEntityId_;

		// Token: 0x04004D0B RID: 19723
		public const int RetcodeFieldNumber = 9;

		// Token: 0x04004D0C RID: 19724
		private uint retcode_;

		// Token: 0x04004D0D RID: 19725
		public const int MonsterBattleInfoFieldNumber = 2;

		// Token: 0x04004D0E RID: 19726
		private static readonly FieldCodec<HitMonsterBattleInfo> _repeated_monsterBattleInfo_codec = FieldCodec.ForMessage<HitMonsterBattleInfo>(18U, HitMonsterBattleInfo.Parser);

		// Token: 0x04004D0F RID: 19727
		private readonly RepeatedField<HitMonsterBattleInfo> monsterBattleInfo_ = new RepeatedField<HitMonsterBattleInfo>();
	}
}
